package com.di.factory;

import com.di.model.hello.HelloApi;
import com.di.model.hello.HelloImpl;

/**
 * 工厂方法实例化
 *
 * @author Roger
 * @since 2021/7/17
 */
public class HelloApiInstanceFactory {
    public HelloApi newInstance(String name, int age) {
        return new HelloImpl(name, age);
    }
}
